package com.lkwlw.tplms.system.action;

import com.lkwlw.tplms.system.dao.mapper.AdmininfoMapper;
import com.opensymphony.xwork2.ActionSupport;

public class DelUserAction extends ActionSupport {
	private static final long serialVersionUID = -8112750414171816118L;
	
	private Integer[] id;
	
	private AdmininfoMapper admininfoMapper; 
	
	public String execute(){
		if(id.length>0){
	 for (int i = 0; i < id.length; i++) {
		 admininfoMapper.deleteByPrimaryKey(id[i]);
	}
		}
		return SUCCESS;
	}
	
	public void setId(Integer[] id) {
		this.id = id;
	}

	public void setAdmininfoMapper(AdmininfoMapper admininfoMapper) {
		this.admininfoMapper = admininfoMapper;
	}

}
